home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / WindowMaker / util / bughint next >
Encoding:
Text File  |  1998-09-29  |  1.2 KB  |  43 lines

  1. #!/bin/sh
  2.  
  3. #
  4. # Use this to gather data about your system and send me
  5. # the sysinfo.txt file with your bugreport, plus any error
  6. # messages you've received. This program should be run under X.
  7. #
  8.  
  9.  
  10. echo gathering information for bug tracking...
  11.  
  12. uname -a > sysinfo.txt
  13. echo "=============== xdpyinfo ================" >> sysinfo.txt
  14. xdpyinfo >> sysinfo.txt
  15. echo "=============== env ================" >> sysinfo.txt
  16. env >> sysinfo.txt
  17. echo "=============== ldconfig ================" >> sysinfo.txt
  18. if [ `uname` = 'Linux' ]; then
  19.     /sbin/ldconfig -p >> sysinfo.txt
  20. else
  21.     /sbin/ldconfig -r >> sysinfo.txt
  22. fi
  23. echo "=============== config.cache ================" >> sysinfo.txt
  24. cat ../config.cache ../Version >> sysinfo.txt 2> /dev/null
  25. cat config.cache Version >> sysinfo.txt 2> /dev/null
  26.  
  27. echo "=============== configuration dir ===========" >> sysinfo.txt
  28. WDIR=$HOME/gnustep/Library/WindowMaker
  29. if [ -d $WDIR ]; then
  30.     for i in preferences menu app_options winitrc shortcuts; do
  31.         if [ -f $WDIR/$i ]; then
  32.             echo "============== $i ========" >> sysinfo.txt
  33.             cat $WDIR/$i >> sysinfo.txt
  34.         fi
  35.     done
  36. else
  37.     echo "No config directory found" >> sysinfo.txt
  38. fi
  39.  
  40. gzip -9 sysinfo.txt
  41.  
  42. echo done.
  43.